package com.example.hfSystem.entity.pojo;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 留言板
 * </p>
 * @since 2024-04-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("messages")
@ApiModel(value = "Messages对象", description = "留言板")
public class Messages implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("留言人id")
    @TableField("userid")
    private Long userid;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("头像")
    @TableField("avatarurl")
    private String avatarurl;

    @ApiModelProperty("留言内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("留言图片")
    @TableField("cpicture")
    private String cpicture;

    @ApiModelProperty("回复内容")
    @TableField("reply")
    private String reply;

    @ApiModelProperty("回复图片")
    @TableField("rpicture")
    private String rpicture;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String USERID = "userid";

    public static final String USERNAME = "username";

    public static final String AVATARURL = "avatarurl";

    public static final String CONTENT = "content";

    public static final String CPICTURE = "cpicture";

    public static final String REPLY = "reply";

    public static final String RPICTURE = "rpicture";

    public static final String CREATE_TIME = "create_time";

}
